package com.tukez.tmdb
import com.tukez.tmdb.model.ErrorDetails

class TMDbException(val message: String, val cause: Throwable = null) extends Exception(message, cause)
class TMDbHttpException(val statusCode: Int, val error: Option[ErrorDetails] = None, cause: Throwable = null) extends TMDbException("HTTP error " + statusCode, cause)
class TMDbRetryException(val retried: Int, val statusCode: Int) extends TMDbException("Retried " + retried + " times")
class TMDbParseException(message: String, cause: Throwable = null) extends TMDbException(message, cause)